package com.wmapp.domain;
/**
 * System administrator domain
 * @author dengl
 *
 */
public class Administrator {
	public final static String LEVEL_SYS="System";
	public final static String LEVEL_CONF="Conference";
	
	private String name;
	private String realname;
	private String password;
	private String phone;
	private String email;
	private String address;
	private String accesslevel;
	private String grouplimit;
	private String grouplimitDisplay;
	private String group;
	
	public static final String[] ADD_PARAM_FIELDS={"name","realname","password","phone","email","address","accesslevel","grouplimit","group"};
	public static final String[] MODIFY_PARAM_FIELDS={"name","realname","password","phone","email","address","accesslevel","grouplimit","group"};
	//public static final String[] GRID_COLS={"name","realname","phone","email","address","accesslevel","grouplimitDisplay","group"};
    public static final String[] GRID_COLS={"name","realname","phone","email","address","accesslevel","group"};
	
	public String getGrouplimitDisplay() {
		if(grouplimit==null)
			return null;
		else if(grouplimit.equals("true"))
			return "Y";
		else if(grouplimit.equals("false"))
			return "N";
		else
			return grouplimit;
	}

	public String getName() { 
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAccesslevel() {
		return accesslevel;
	}
	public void setAccesslevel(String accesslevel) {
		this.accesslevel = accesslevel;
	}
	public String getGrouplimit() {
		return grouplimit;
	}
	public void setGrouplimit(String grouplimit) {
		this.grouplimit = grouplimit;
	}
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
}
